<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js - v-for</title>
</head>

<body>
    <script src="./Vue2/vue.js"></script>

    <div id="app">
        <h1>田神水果店</h1>
        <ul>
            <li v-for="(item, index) in list" :key="item">{{ item }}</li>
        </ul>
    </div>

    <script>
        const app = new Vue({
            el: '#app',
            data: {
                list: [
                    '西瓜', '苹果', '田神'
                ],
                index: 0
            },
            methods: {
                
            },
        })
    </script>
</body>
</html>